package com.zhenyi.config;

import com.jfinal.config.Routes;
import com.zhenyi.xiaohuoche.admin.AdminAdvController;
import com.zhenyi.xiaohuoche.admin.AdminApiController;
import com.zhenyi.xiaohuoche.admin.AdminController;
import com.zhenyi.xiaohuoche.admin.AdminOrderController;
import com.zhenyi.xiaohuoche.admin.AdminPresentController;
import com.zhenyi.xiaohuoche.admin.AdminTicketController;
import com.zhenyi.xiaohuoche.admin.web.OrderController;
import com.zhenyi.xiaohuoche.admin.web.UserController;
import com.zhenyi.xiaohuoche.index.AdvController;
import com.zhenyi.xiaohuoche.index.BillController;
import com.zhenyi.xiaohuoche.index.PresentController;
import com.zhenyi.xiaohuoche.index.TicketController;

public class XHCRoutes extends Routes {

	@Override
	public void config() {
		add("/xhc/user", com.zhenyi.xiaohuoche.index.UserController.class);
		add("/xhc/ticket", TicketController.class);
		add("/xhc/present", PresentController.class);
		add("/xhc/adv", AdvController.class);
		add("/xhc/admin", AdminController.class);
		add("/xhc/admin/ticket", AdminTicketController.class);
		add("/xhc/admin/present", AdminPresentController.class);
		add("/xhc/admin/adv", AdminAdvController.class);
		add("/xhc/admin/order", AdminOrderController.class);
		add("/xhc/bill", BillController.class);
		add("/xhc/api", AdminApiController.class);

		add("/xhc/web/user", UserController.class);
		add("/xhc/web/order", OrderController.class);
		add("/xhc/web/present", com.zhenyi.xiaohuoche.admin.web.PresentController.class);
		add("/xhc/web/ticket", com.zhenyi.xiaohuoche.admin.web.TicketController.class);
		add("/xhc/web/auth", com.zhenyi.xiaohuoche.admin.web.AuthController.class);
		add("/xhc/web/adv", com.zhenyi.xiaohuoche.admin.web.AdvController.class);
		add("/xhc/web/statistic", com.zhenyi.xiaohuoche.admin.web.StatisticController.class);
	}

}
